package cn.eleven.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户实体类
 */
@Data
@NoArgsConstructor
public class User {
    private int id; // 用户ID
    private String username; // 用户名
    private String password; // 密码
    private String role; // 角色
    private String roomOccupied; // 占用房间
    private double userBalance;
    private String phone;
    public static double currentBalance; // 静态变量存储余额

    public User(int id, String username) {
        this.id = id;
        this.username = username;
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}